package com.webside.series.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.base.baseservice.impl.AbstractService;
 
import com.webside.series.mapper.BdictionaryMapper;
 
import com.webside.series.model.Bdictionary;
 
import com.webside.series.service.BdictionaryService;
 
@Service("BdictionaryService")
public class BdictionaryServiceImpl extends AbstractService<Bdictionary, Long> implements BdictionaryService {

	@Override
	public int updateSeo(Bdictionary dictionary) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.updateSeo(dictionary);
	}

	@Override
	public List<Bdictionary> selectTypeSeo(Map<String, Object> parameter) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectTypeSeo(parameter);
	}
	@Autowired
	private  BdictionaryMapper bdictionaryMapper ;
	
	// 这句必须要加上。不然会报空指针异常，因为在实际调用的时候不是BaseMapper调用，而是具体的mapper，这里为userMapper
		@Autowired
		public void setBaseMapper() {
			super.setBaseMapper(bdictionaryMapper);
		}
		
   //频道查询
	@Override
	public List<Bdictionary> selectAllChannels(Bdictionary channel) {
		 
		return bdictionaryMapper.selectAllChannels(channel);
	}

	// 查询频道的类型
	@Override
	public List<Bdictionary> selectTypeByChannel(Bdictionary channel) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectTypeByChannel(channel);
	}
	//频道分类查询
	@Override
	public List<Bdictionary> selectKindByChannel(Bdictionary channel) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectKindByChannel(channel);
	}

	@Override
	public List<Bdictionary> selectChannels(Bdictionary channel) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectChannels(channel);
	}
    //年份
	@Override
	public List<Bdictionary> selectYear(Bdictionary channel) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectYear(channel);
	}
    //地区
	@Override
	public List<Bdictionary> selectArea(Bdictionary channel) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectArea(channel);
	}
	//语言
	@Override
	public List<Bdictionary> selectLanguage(Bdictionary channel) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectLanguage(channel);
	}
    //等级
	@Override
	public List<Bdictionary> selectTypeByPosition(Bdictionary channel) {
		 
		return bdictionaryMapper.selectTypeByPosition(channel);
	}

	@Override
	public List<Bdictionary> typeByAlls(Bdictionary channel) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.typeByAlls(channel);
	}

	@Override
	public List<Bdictionary> kindByAlls(Bdictionary channel) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.kindByAlls(channel);
	}

	@Override
	public List<Bdictionary> selectListByDiction(Map<String, Object> parameter) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectListByDiction(parameter);
	}

	@Override
	public List<Bdictionary> selectTypeByAll(Bdictionary channel) {
		 
		
		
		List<Bdictionary> list=bdictionaryMapper.selectTypeByAll(channel);
		 
           
		return list;
	}

	@Override
	public List<Bdictionary> selectTypeAll(Bdictionary channel) {
		 
		return bdictionaryMapper.selectTypeAll(channel);
	}


	@Override
	public List<Bdictionary> selectTypeSerieskind(Map<String, Object> parameter) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectTypeSerieskind(parameter);
	}

	@Override
	public List<Bdictionary> selectTypeYear(Map<String, Object> parameter) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectTypeYear(parameter);
	}

	@Override
	public List<Bdictionary> selectTypeArea(Map<String, Object> parameter) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectTypeArea(parameter);
	}

	@Override
	public List<Bdictionary> seoByAll(Bdictionary dictionary) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.seoByAll(dictionary);
	}

	@Override
	public List<Bdictionary> seoByKeywords(Bdictionary dictionary) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.seoByKeywords(dictionary);
	}

	@Override
	public List<Bdictionary> seoByIndex(Bdictionary dictionary) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.seoByIndex(dictionary);
	}

	@Override
	public List<Bdictionary> seoByTitle(Bdictionary dictionary) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.seoByTitle(dictionary);
	}

	@Override
	public List<Bdictionary> seoByResearch(Bdictionary dictionary) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.seoByResearch(dictionary);
	}

	@Override
	public List<Bdictionary> seoByMeishu(Bdictionary dictionary) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.seoByMeishu(dictionary);
	}

	@Override
	public List<Bdictionary> selectVideoByClarity(Bdictionary channel) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectVideoByClarity(channel);
	}

	@Override
	public List<Bdictionary> selectByStatus(Bdictionary channel) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.selectByStatus(channel);
	}

	@Override
	public List<Bdictionary> seoBySearch(Bdictionary dictionary) {
		// TODO Auto-generated method stub
		return bdictionaryMapper.seoBySearch(dictionary);
	}
 


	
	 
    
	
	 

}
